#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
char arr[26];
int num[26];
bool fun(int n){
    if(n<2)return false;
    int k=sqrt(n);
    for(int i=2;i<=k;i++)
        if(n%i==0)
            return false;
    return true;
}
int main(){
    char ch;
    int n=1;
    while(scanf("%c",&ch)){
        if(ch=='\n')break;
        for(int i=0;i<n;i++)
            if(ch==arr[i]){
                num[i]++;
                break;
            }else if(i==n-1){
                arr[n]=ch;
                num[n]++;
                n++;
                break;
            }
    }
    sort(num+1,num+n);
    if(fun(num[n-1]-num[1]))
    cout<<"Lucky Word\n"<<num[n-1]-num[1]<<endl;
    else cout<<"No Answer\n"<<0<<endl;
    return 0;
}